package cd.cdyb.sms.dao;

import cd.cdyb.sms.domain.Employee;
import cd.cdyb.sms.dto.EmployeeDto;
import cd.cdyb.sms.vo.EmployeeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lilin
 */
@Mapper
public interface EmployeeDao extends BaseMapper<Employee> {

    /**
     * 根据手机号和平台查询员工信息
     *
     * @param phone 手机号
     * @return 员工信息
     */
    Employee getEmployeeByPhone(@Param("phone") String phone);

    /**
     * 列表
     *
     * @param employeeDto
     * @return
     */
    List<EmployeeVo> findEmployeeList(EmployeeDto employeeDto);
}
